#include "visitor.h"
#include <vector>

using namespace std;

void Visitor::visitExpr(Expr& epxr){

}

void Visitor::visitVariableExpr(VariableExpr& expr){

}

void Visitor::visitFunctionNameExpr(FunctionNameExpr& expr){

}

void Visitor::visitConstantExpr(ConstantExpr& expr){

}

void Visitor::visitBinaryExpr(BinaryExpr& exp){

}

void Visitor::visitStatement(Statement& stmt){

}

void Visitor::visitBlock(Block& blk){
    vector<Tree*>::iterator it;
    for(it = blk.statements.begin();it != blk.statements.end();it++){
        (*it)->accept(this);
    }
}

void Visitor::visitVariableDeclare(VariableDeclareStatement& stmt){

}

void Visitor::visitAssignment(AssignmentStatement& stmt){

}

void Visitor::visitParameterList(ParameterListStatement& stmt){

}

void Visitor::visitVariableList(VariableListStatement& stmt){

}

void Visitor::visitExprList(ExprListStatement& stmt){

}

void Visitor::visitFunctionDef(FunctionDefStatement& stmt){

}

void Visitor::visitFunctionCall(FunctionCallStatement& stmt){

}

void Visitor::visitWhileStatement(WhileStatement& stmt){

}

void Visitor::visitIfStatement(IfStatement& stmt){

}

